package com.mall.appcontroller;

import com.domain.Goodsetting;
import com.domain.result.ResultData;
import com.service.seinterface.GoodSettingService;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RequestMapping("/appmall")
@RestController
public class AppGoodSettingController {

    @Resource
    GoodSettingService goodSettingService;

    @RequestMapping("/getAllGoodSetting")
    public ResultData getAllGoodSetting(){
        return goodSettingService.getAllGoodSetting();
    }


    @RequestMapping("/updateGoodSettingById")
    public ResultData updateGoodSettingById(@RequestBody List<Goodsetting> Goodsettings){
        return goodSettingService.updateGoodSettingById(Goodsettings);
    }


}
